package com.jhws.business.alert.service;

import java.util.List;

import com.jhws.business.alert.dao.ITblServiceDimDAO;

import com.jhws.business.alert.bo.TblServiceDimBo;
import com.jhws.common.Page;

public class TblServiceDimServiceSpringImpl implements ITblServiceDimService {
	private ITblServiceDimDAO tblServiceDimDAO;

	public ITblServiceDimDAO getTblServiceDimDAO() {
		return tblServiceDimDAO;
	}

	public void setTblServiceDimDAO(ITblServiceDimDAO tblServiceDimDAO) {
		this.tblServiceDimDAO = tblServiceDimDAO;
	}

	public Page findTblServiceDim(int start, int num, String whereClause)
			throws Exception {
		Page page = tblServiceDimDAO.findTblServiceDim(start, num, whereClause);
		return page;
	}

	public TblServiceDimBo save(TblServiceDimBo bo) throws Exception {
		return tblServiceDimDAO.save(bo);
	}

	public List findTblServiceDimByWhere(String whereClause) throws Exception {
		return tblServiceDimDAO.findTblServiceDimByWhere(whereClause);
	}

	public TblServiceDimBo findTblServiceDimById(String TblServiceId) {
		return tblServiceDimDAO.getById(TblServiceId);
	}

	public void removeServiceDim(String TblServiceId) {
		tblServiceDimDAO.deleteTblServiceDim(TblServiceId);
	}

}
